#include <iostream>
class Money {
private:
  int yuan;
  int jiao;
  int fen;

public:
  Money() : yuan(0), jiao(0), fen(0){};
  Money(int yuan, int jiao, int fen) : yuan(yuan), jiao(jiao), fen(fen){};
  void operator++(int) { fen++; };
  void operator=(const Money &money) {
    yuan = money.yuan;
    jiao = money.jiao;
    fen = money.fen;
  };
  void show() { printf("%d元%d角%d分\n", yuan, jiao, fen); }
};

int main() {
  Money m1(10, 9, 1);
  m1.show();

  Money m2, m3;
  m1++;
  m2 = m1;
  m2.show();

  m2++;
  m3 = m2;
  m3.show();
  return 0;
}
